#include <REGX52.H>

void main(){
	P2=0xff;
	for(;;){
		if(!(P3&2)) continue;
		while(P3&2);
		P2^=1;
	}
}